<?php if (!defined('THINK_PATH')) exit();?><!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>英正网络[www.xuehen.org]后台登陆</title>
<meta name="robots" content="nofollow" />
<meta name=”viewport” content=”width=device-width, initial-scale=1, maximum-scale=1″>
<link href="/Public/Css/admin-style.css" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript" src="/Public/JS/jquery.js"></script>
<script language="javascript" type="text/javascript" src="/Public/JS/admin-common.js"></script>
</head>

<body>


<script>
$(function(){
	$("tr:even").css('background','#eee')
})
</script>
<div class="title title-article">导航列表</div>

<table class="table" width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr class="first">
    <td width="30" align="center">ID</td>
    <td>名称</td>
    <td width="80" align="center">状态</td>
    <td width="100" align="center">上级导航</td>
    <td width="120" align="center">操作</td>
  </tr>
  <?php if(is_array($nav)): $i = 0; $__LIST__ = $nav;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$list): $mod = ($i % 2 );++$i;?><tr>
    <td width="30" align="center"><?php echo ($list['id']); ?></td>
    <td><?php echo ($list['name']); ?></td>
    <td width="80" align="center" onClick="changeStatus(<?php echo ($list['id']); ?>,this)"><?php echo ($list['status'] ? '显示' : '隐藏'); ?></td>
    <td width="100" align="center"><?php if($list['pid'] == 0): ?>顶级分类<?php else: echo getNavName($list['pid']); endif; ?></td>
    <td width="120" align="center"><a class="edit" href="<?php echo U('edit','id='.$list['id']);?>">修改</a> <a class="del" href="<?php echo U('delete','id='.$list['id']);?>" onClick="return confirm('确定要删除吗？')">删除</a></td>
  </tr><?php endforeach; endif; else: echo "" ;endif; ?>
</table>



</body>
</html>